{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>

    <meta charset="UTF-8">
    <title>Title</title>

    <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1-dist/css/bootstrap.min.css' %}">
    <!-- 引入 echarts.js -->
    <script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>
    <!-- 引入主题 -->
    <script src="https://www.runoob.com/static/js/wonderland.js"></script>



    {#    去掉圆角 #}
    <style>
        .navbar {
            border-radius: 0;
        }
    </style>
    {% block CSS %}{% endblock %}

</head>
<body>
<nav class="navbar navbar-default">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">客户管理系统</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">

                <li><a href="/customer/list/">客户管理</a></li>
                {% if  request.tracer.level  == 3 %}
                    <li><a href="/team/list/">团队管理</a></li>
                    <li><a href="/staff/list/" target="_blank">员工绩效</a></li>
                {% elif request.tracer.level  == 2 %}
                    <li><a href="/staff/list/">员工绩效</a></li>

                {% endif %}


            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a style="color:#2aabd2;" href="#">欢迎您：{{ request.session.info.name }}</a></li>
                <li><a href="/change/password/">修改密码</a></li>
                <li><a href="/logout/">注销</a></li>

            </ul>


        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>


<div>
    {% block content %}
    {% endblock %}
</div>

<div>
    {% block footer %}
    {% endblock %}
</div>

<div>
    {% block script %}{% endblock %}
</div>

<script src="{% static 'js/jquery-3.6.0.min.js' %}"></script>
<script src="{% static 'plugins/bootstrap-3.4.1-dist/js/bootstrap.min.js' %}"></script>
{% block JSI %}{% endblock %}
</body>
</html>